﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Practices.Unity;
using Microsoft.Practices.Composite.Presentation.Commands;
namespace Skynet.SLAdministration.Views.MgmCategories
{
    public partial class MgmCategoriesView : UserControl 
    {    

        
        

        private MgmCategoriesPresenter _Presenter;
        [Dependency]
        public MgmCategoriesPresenter Presenter
        {
            get { return _Presenter; }
            set { 
                _Presenter = value;
                _Presenter.Context = System.Threading.SynchronizationContext.Current;
                this.DataContext = value;
                
            }
        }
        public MgmCategoriesView()
        {
            InitializeComponent();
            this.Loaded += new RoutedEventHandler(MgmCategoriesView_Loaded);
        }

        void MgmCategoriesView_Loaded(object sender, RoutedEventArgs e)
        {
            this.Presenter.OnViewReady();
            
        }
        private void btnLoadCategories_Click(object sender, RoutedEventArgs e)
        {            
            
        }        
    }
}
